package com.slz3.business.module.systemManagement.sysPermissions.steward;

import com.slz3.business.frame.util.poi.CreateRow;
import com.slz3.business.module.systemManagement.sysPermissions.domain.SysPermissions;
import org.apache.poi.ss.usermodel.Row;

public class SysPermissionsCreateRow extends CreateRow<SysPermissions> {

    public static SysPermissionsCreateRow createRow = new SysPermissionsCreateRow();
    private SysPermissionsCreateRow() {}

    @Override
    public void writeRow(Row row, SysPermissions sysPermissions) {
        int index = 0;
        row.createCell(index++).setCellValue(sysPermissions.getUuid().toString());
        row.createCell(index++).setCellValue(sysPermissions.getValidFlag().name());
        row.createCell(index++).setCellValue(sysPermissions.getSerAudit().name());
        row.createCell(index++).setCellValue(sysPermissions.getSerMemo());
        row.createCell(index++).setCellValue(sysPermissions.getSerNum());
        row.createCell(index++).setCellValue(sysPermissions.getSerUsing().name());
        row.createCell(index).setCellValue(sysPermissions.getSerUri());
    }
}
